package cn.edu.hatu.bookshop.entity;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class Book {
    private int bookId;
    private String pubs;
    private String bookName;
    private String bookAuthor;
    private int bookCount;
    private int classifyId;
    private double price;
    private String bookShelf;

    public Book( String pubs, String bookName, String bookAuthor, int bookCount, int classifyId, double price, String bookShelf) {
        this.pubs = pubs;
        this.bookName = bookName;
        this.bookAuthor = bookAuthor;
        this.bookCount = bookCount;
        this.classifyId = classifyId;
        this.price = price;
        this.bookShelf = bookShelf;
    }

    public Book() {
    }


    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", pubs='" + pubs + '\'' +
                ", bookName='" + bookName + '\'' +
                ", bookAuthor='" + bookAuthor + '\'' +
                ", bookCount=" + bookCount +
                ", classifyId=" + classifyId +
                ", price=" + price +
                ", bookShelf='" + bookShelf + '\'' +
                '}';
    }
}
